<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://config.com" prefix="config"%>
<!-- Main Container -->
<div class="main-container container-fluid">
    <!-- Page Container -->
    <div class="page-container">
        <%--导入菜单 --%>
        <c:choose>
            <c:when test='${loginUser.userName=="dev"}'>
                <!--开发者模式-->
                <%@include file="/framePage/menus.jsp" %>
            </c:when>
            <c:otherwise>
                <!--动态权限菜单-->
                <%@include file="/framePage/menus_1.jsp" %>
            </c:otherwise>
        </c:choose>
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="fa fa-home"></i>
                        <a href="sys_index">Home</a>
                    </li>
                    <li class="active" id="nowActiveMenuName"></li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->
            <!-- Page Header -->
            <div class="page-header position-relative nomargin">
                <!--Header Buttons-->
                <div class="header-buttons hidden">
                    <a class="sidebar-toggler" href="#">
                        <i class="fa fa-arrows-h"></i>
                    </a>
                    <a class="refresh" id="refresh-toggler" href="javascript:" onclick="refunshView()">
                        <i class="glyphicon glyphicon-refresh"></i>
                    </a>
                    <a class="fullscreen" id="fullscreen-toggler" href="#">
                        <i class="glyphicon glyphicon-fullscreen"></i>
                    </a>
                </div>
                <!--Header Buttons End-->
            </div>
            <!-- /Page Header -->
            <!-- Page Body -->
            <div class="page-body">
                <%--导入欢迎页 --%>
                <%@include file="/framePage/welcome.jsp" %>
                <script type="text/javascript">
                    var welcomePage="<config:getConfigValue key="partformDefaultWelcomePage"/>";
                    if(/http:\/\/.*/.test(welcomePage)){
                        var iframe='<iframe src="'+welcomePage+'" style="border: none;padding:0px; margin: 0px; width: 100%; height:'+$(window).height()+' ;"></iframe>';
                        $(".page-body").html(iframe);
                    }else{
                        $(".page-body").load(welcomePage);
                    }
                    $(".loading-container").addClass("loading-inactive");
                </script>
            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
    </div>
    <!-- /Page Container -->
    <!-- Main Container -->
</div>